﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FavoriteGood.ascx.cs"
    Inherits="UserControls_FavoriteGood" %>
<%@ Register Src="Page.ascx" TagName="Page" TagPrefix="uc1" %>
<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="js/Shop.js"></script>

<script language="javascript" type="text/javascript">
    function addGood(proid,pronorm,color)
    {
        var quantity = 1;
         
        Common.intoCar(proid,quantity,pronorm,color);
        window.location="Default.aspx?PN=cart";
    }

</script>

<table width="770" border="0" cellpadding="0" cellspacing="1" bgcolor="C5E4FF" style="text-align: left;">
    <tr>
        <td valign="top" bgcolor="#FFFFFF">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="3%" height="35" background="images/UserControls/bgbg.jpg">
                        <div align="center">
                            <img src="images/UserControls/dddd.jpg" width="9" height="27" /></div>
                    </td>
                    <td width="97%" background="images/UserControls/bgbg.jpg" class="STYLE3">
                        商品收藏
                    </td>
                </tr>
                <tr>
                    <td height="1" bgcolor="C5E4FF">
                    </td>
                    <td bgcolor="C5E4FF">
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <asp:DataList ID="dlGoods" runat="server" OnDeleteCommand="dlGoods_DeleteCommand"
                            Width="100%" OnItemDataBound="dlGoods_ItemDataBound">
                            <ItemTemplate>
                                <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="padding: 10px">
                                    <tr>
                                        <td rowspan="6" valign="top" width="23%" bgcolor="White">
                                            <a href='Default.aspx?PN=goods_details&ID=<%# Eval("GoodID") %>'>
                                                <asp:Image ID="imgGoodPic" onerror="this.src='UpFile/Goods/NoPicture.jpg'" runat="server"
                                                    ImageUrl='<%# Eval("GoodPic_Small") %>' /></a>
                                        </td>
                                        <td align="left" colspan="3" id="tdname" runat="server">
                                            <a href='Default.aspx?PN=goods_details&ID=<%# Eval("GoodID") %>'>
                                                <asp:Label ID="lbGoodName" runat="server" Text='<%# Eval("GoodName_CN") %>'></asp:Label>
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="ibDeletes" runat="server" CommandName="Delete"
                                                    CommandArgument="ID" />
                                            </a>
                                            <asp:HiddenField ID="hID" runat="server" Value='<%# Eval("ID") %>' />
                                            <asp:HiddenField ID="hGoodID" runat="server" Value='<%# Eval("GoodID") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" colspan="3" height="50" style="padding-left: 10px" valign="top">
                                            <span id="spanmark" runat="server">市场价：￥<asp:Label ID="lbPrice_Orig" runat="server"
                                                Text='<%# Eval("Price_Orig") %>'></asp:Label><br />
                                            </span><span id="spanvip" runat="server">会员价：</span><span class="price"><font color="red">￥
                                                <asp:Label ID="lbPrice_Vip" runat="server" ForeColor="#FF6600" Style="font-weight: bold"
                                                    Text='<%# Eval("Price_Vip") %>'></asp:Label></font></span><br />
                                            <span id="span1" runat="server">立即节省：￥<asp:Label ID="lbCost" runat="server" Text='<%# Eval("Cost") %>'></asp:Label></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td id="tdcontent" runat="server" colspan="3" align="left">
                                            <asp:Label ID="lbGoodIntroduce" runat="server" Style="color: #336699" Text='<%# Eval("GoodIntroduce") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" height="5">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="60%">
                                            &nbsp;
                                        </td>
                                        <td width="20%">
                                            <asp:ImageButton ID="ibBuy" runat="server" CausesValidation="False" PostBackUrl="~/Default.aspx?PN=cart" />
                                        </td>
                                        <td width="20%">
                                            <a href='Default.aspx?PN=goods_details&ID=<%# Eval("GoodID") %>'>
                                                <img src="http://about" id="img1" runat="server" /></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" height="5">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td id="tdline" runat="server" height="10px" colspan="4">
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<uc1:Page ID="Page1" runat="server" Type="2" />
